package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class IndexRandomBean implements Serializable, IJsonParser{

	/**
	 *  "random_product": {
        "product_id": 3
    },
    "random_lottery_prize": {
        "lottery_id": 32
    },
	 */
	private static final long serialVersionUID = -1320171601470955875L;
	private String product_id;
	private String lottery_id;
	private String point_type_id;
	public String getProduct_id() {
		return product_id;
	}
	public String getLottery_id() {
		return lottery_id;
	}
	public String getPoint_type_id() {
		return point_type_id;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, IndexRandomBean.class);
		}
		return null;
	}

}
